import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'

const app = createApp(App);

//配置全局路径
axios.defaults.baseURL = "http://localhost:8081"
//将axios挂载到app对象上
app.config.globalProperties.$axios = axios
//跨域请求中传递cookie
axios.defaults.withCredentials = true

app.use(store).use(router).mount('#app')
